﻿Public Class ClassColFragments
    'Collection indexée de fragments de texte
    Inherits System.Collections.ObjectModel.KeyedCollection(Of String, ClassFragment)

    Protected Overrides Function GetKeyForItem(ByVal item As ClassFragment) As String
        Return item.Titre
    End Function

    Friend Overloads Sub add(ByVal Key As String, ByRef Item As ClassFragment)
        If Not Me.Contains(Key) Then
            Me.add(Item)
        End If
    End Sub
End Class
